package com.itheima.dubbo.web;


import com.itheima.dubbo.service.UserInterface;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description
 *
 */
@RestController
@RequestMapping("user")
public class UserController {
       @DubboReference
    UserInterface userInterface;

       @GetMapping("hello")
    public String hello (String username){
           return  userInterface.hello(username);
       }
}
